package com.banner.lyl.service.impl;


import com.banner.lyl.IUserService;
import com.banner.lyl.dao.IUserDao;
import com.banner.lyl.dao.impl.UserDaoImpl;
import com.banner.lyl.entity.User;
import com.banner.lyl.utils.DruidConnectionUtils;
import com.banner.lyl.utils.JavaDateConnection;

/**
 * @Author: Re
 * @Date: 2021/3/20 21:26
 */
public class UserServiceImpl  implements IUserService {
    IUserDao iUserDao = new UserDaoImpl();

//    JavaDateConnection javaDateConnection = new JavaDateConnection();
DruidConnectionUtils druidConnectionUtils=new DruidConnectionUtils();

    @Override
    public boolean insertUser(User user) {
    return iUserDao.insertUser(druidConnectionUtils.getConnection(),user);
    }
}
